package cn.qingyun.gis.modules.scenes.response;

import cn.qingyun.gis.modules.scenes.conver.BusinessStateConverter;
import cn.qingyun.gis.modules.scenes.conver.CustomEnumConverter;
import cn.qingyun.gis.modules.scenes.conver.DatetimeConverter;
import cn.qingyun.gis.modules.scenes.conver.OperatorConverter;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 不要动该类，会爆炸的
 */
@Data
@ApiModel("场景攻坚随访分页明细")
public class ScenesPageDto {

    @ExcelIgnore
    private String id;

    @ExcelIgnore
    private String proofreadId;

    @ExcelProperty("POI名称")
    private String kwPoiName;

//    @ExcelProperty("修改前名称")
    @ExcelIgnore
    private String poiName;

    @ExcelProperty("POI_ID")
    private String poiId;

    @ExcelProperty("POI地址")
    private String address;

//    @ExcelProperty("归属场景")
    @ExcelIgnore
    private String kwType;

    @ExcelProperty("场景类型")
    private String type;

    @ExcelProperty(value = "是否为建筑", converter = CustomEnumConverter.class)
    private Integer isBuild;

    @ExcelProperty("归属建筑名称")
    private String belongBuildName;

    @ExcelProperty("归属建筑POI")
    private String belongBuildId;

    @ExcelProperty("地市")
    private String regionCity;

    @ExcelProperty("区县")
    private String regionDis;

    @ExcelProperty("网格")
    private String gridName;

    @ExcelProperty("网格编码")
    private String gridCode;

    @ExcelProperty(value = "是否随访", converter = CustomEnumConverter.class)
    private Integer kwState;

    @ExcelProperty("随访员工")
    private String kwName;

    @ExcelProperty("随访员工工号")
    private String kwPhone;

    @ExcelProperty("角色类型")
    private String roleName;

    @ExcelProperty("渠道编码")
    private String channelCode;

    @ExcelProperty(value = "随访结束时间", converter = DatetimeConverter.class)
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date kwTime;

    @ExcelProperty(value = "随访开始时间", converter = DatetimeConverter.class)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date kwTimeStart;

    @ExcelProperty("归属建筑楼栋")
    private String building;

    @ExcelProperty("归属建筑楼层单元")
    private String unit;

    @ExcelProperty("归属建筑楼层楼层")
    private String floor;

    @ExcelProperty("归属建筑房间")
    private String room;

    @ExcelProperty(value = "经营状态",converter = BusinessStateConverter.class)
    private Integer businessState;

    @ExcelProperty("路巷街")
    private String houseRoad;

    @ExcelProperty("门牌号")
    private String houseNumber;

    @ExcelProperty("店主姓名")
    private String kwBossName;

    @ExcelProperty("联系人电话")
    private String kwBossTel;

    @ExcelProperty(value = "手机号归属运营商", converter = OperatorConverter.class)
    private Integer dzBelongOperator;

    @ExcelProperty(value = "宽带所属运营商", converter = OperatorConverter.class)
    private Integer belongOperator;

    @ExcelProperty(value = "设备宽带识别码")
    private String kdDeviceId;

    @ExcelIgnore
    private String telephone;

    @ExcelProperty("业务号码")
    private String kdRelatedPhone;

    @ExcelProperty("装机地址")
    private String kdAddress;

    @ExcelProperty("宽带(优惠)到期时间")
    private String expireDate;

    @ExcelProperty("宽带类型")
    private String kdType;

    @ExcelProperty("月均消费（半年）")
    private String kwBossConsume;

    @ExcelProperty(value = "宽带网络是否覆盖", converter = CustomEnumConverter.class)
    private Integer isZoneCode;
    /**
     * 网络是否覆盖是否准确 1是 0否
     */
    @ExcelProperty(value = "覆盖信息是否准确", converter = CustomEnumConverter.class)
    private Integer isZoneCodeAccurate;

    @ExcelProperty(value = "是否有平台", converter = CustomEnumConverter.class)
    private Integer isPlatform;

    @ExcelProperty(value = "当前平台资费")
    private String platformConsume;

    @ExcelProperty(value = "平台优惠到期时间")
    private String platformExpireTime;

    @ExcelProperty(value = "平台/厂家")
    private String platformName;

    @ExcelProperty(value = "聚合支付手续费")
    private String payFees;

    @ExcelProperty(value = "平台需求备注")
    private String  demandRemark;

    @ExcelProperty("手动商机")
    private String businessContent;

    @ExcelProperty("门头照片")
    private String photo;
}
